package com.zs.zcerp.remark.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.zs.zcerp.remark.mapper.CommonMapper;
import com.zs.zcerp.remark.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@DS("oracle2")
@Controller
public class CommonServiceImpl implements CommonService {

    @Autowired
    private CommonMapper commonMapper;

    @Override
    public String findDeptNameByNo(Integer orgId, String deptNo, String language) {
        return commonMapper.queryDeptNameByNo(orgId, deptNo, language);
    }

    @Override
    public String findEmpnameByNo(Integer orgId, String Empname, String language) {
        return commonMapper.queryEmpnameByNo(orgId, Empname, language);
    }

    @Override
    public String queryEMPNOByEMP_NO(Integer orgId, String EMP_NO) {
        return commonMapper.queryEMPNOByEMP_NO(orgId, EMP_NO);
    }

    @Override
    public String queryEMP_NOByEMPNO(Integer orgId, String EMPNO) {
        return commonMapper.queryEMP_NOByEMPNO(orgId, EMPNO);
    }


}
